package Activity3;

import java.util.Scanner;

public class ChoiceTest {
    public static void main(String[] args) {
        System.out.println("The menu is:");
        System.out.println("1.Play Game");
        System.out.println("2.View Instructions");
        System.out.println("3.Exit Game");

        Scanner sc = new Scanner(System.in);
        System.out.println("Enter your choice:");
        int choice= sc.nextInt();

        switch(choice){
            case 1:
                System.out.println("You are reading Play Game!");
                break;
            case 2:
                System.out.println("Your are reading view instructions!");
                break;
            case 3:
                System.out.println("Exit Game!");
                break;
             default: System.out.println("Error!");
        }
    }

    /*public void playGame(){
        System.out.println("playGame method is invoked");
    }

    public void instructGame(){
        System.out.println("instructGame method is invoked");
    }

    public void exitGame(){
        System.out.println("exitGame method is invoked");
        System.exit(0);
    }*/

}
